<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Welcome to ISERN</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="default.css" rel="stylesheet" type="text/css" />
</head>
<body>

<div id="outer">
  <div id="header">
    <h1> <a href="#">Add a New Organization</a></h1>
  </div>
  <div id="menu">
    <ul>
      <li class="first"><stripes:link href="/mainMenu.jsp">Home</stripes:link></li>
      <li><stripes:link href="/prefuse.jsp">Prefuse</stripes:link></li>
      <li><stripes:link href="/MyIsern.action" event="sanityCheckReport">Sanity</stripes:link></li>
	  <li><stripes:link href="Logout.action" event="logout" >Logout</stripes:link><li>
    </ul>
    <div class="clear"></div>
  </div>
  <div id="content">
   
    <div id="secondaryContent">
      <h3>Display Entries<span></span></h3>
        <ul>
            <li><stripes:link href="/Display.action" event="printResearchers">Display Researchers</stripes:link></li>
            <li><stripes:link href="/Display.action" event="printOrganizations">Display Organizations</stripes:link></li>
            <li><stripes:link href="/Display.action" event="printCollaborations">Display Collaborations</stripes:link></li>  
        </ul>
      <h3>Add Entries<span></span></h3>
      <ul>
             <li><stripes:link href="/Display.action" event="addResearcher">Add New Researcher</stripes:link></li>
             <li><stripes:link href="/addOrganization.jsp">Add New Organization</stripes:link></li>
             <li><stripes:link href="/addCollaboration.jsp">Add New Collaboration</stripes:link></li>
      </ul>
      <h3>Edit Entries<span></span></h3>
      <ul>
              <li><stripes:link href="/Display.action" event="editResearcher">Edit Researcher</stripes:link></li>
              <li><stripes:link href="/Display.action" event="editOrganization">Edit Organization</stripes:link></li>
              <li><stripes:link href="/Display.action" event="editCollaboration">Edit Collaboration</stripes:link></li>
      </ul>
    </div>
	<div id="primaryContentContainer">
       <p>
  Please fill out text field to the best of your knowledge.  If a certain field does<br>
  not apply at the moment or you do not know the answer, simply leave the field blank.<br>
  For multiple entries, please separate with a comma (,).  If you are satisfied with<br>
  the entry, please submit and save, or cancel. Thank you
   
  <p>
  <stripes:errors action="/AddOrganization.action"/>

  <stripes:form id="AddOrganizationForm" action="/AddOrganization.action" focus="">
     <table>
        <tr>
           <td>Organization Name:</td>
        </tr>
        <tr>
           <td><stripes:text style="width: 350px;" name="organizationName"/></td>
        </tr>
        <tr>
           <td>Organization Type:</td>
        </tr>
        <tr>
            <td><stripes:text style="width: 350px;" name="organizationType"/></td>
        </tr>
        <tr>
            <td>Organization Contact:</td>
        </tr>
        <tr>
            <td><stripes:text style="width: 350px;" name="organizationContact"/></td>
        </tr>
        <tr>
           <td>Affiliated Researcher(s):</td>
        </tr>
        <tr>
           <td><stripes:text style="width: 350px;" name="organizationAffiliatedResearchers"/></td>
        </tr>
        <tr>
           <td>Country:</td>
        </tr>
        <tr>
           <td><stripes:text style="width: 350px;" name="organizationCountry"/></td>
        </tr>
        <tr>
           <td>Research Keyword(s):</td>
        </tr>
        <tr>
           <td><stripes:text style="width: 350px;" name="organizationResearchKeywords"/></td>
        </tr>
        <tr>
           <td>Home Page:</td>
        </tr>
        <tr>
           <td><stripes:text style="width: 350px;" name="organizationUrl"/></td>
        </tr>  
        <tr>
           <td>Research Description:</td>
        </tr>
        <tr>
           <td><stripes:text style="width: 350px; height: 10em;" name="organizationResearchDescription"/></td>
        </tr>        
           
        <tr>
           <td style="text-align: center;">
              <!-- If the security servlet attached a targetUrl, carry that along. -->
              <stripes:hidden name="targetUrl" value="${request.parameterMap['targetUrl']}"/>
              <stripes:submit name="submitAndSave" value="Submit and Save"/>
              <!-- If the security servlet attached a targetUrl, carry that along. -->
              <stripes:hidden name="targetUrl" value="${request.parameterMap['targetUrl']}"/>
              <stripes:submit name="cancel" value="Cancel"/>
           </td>
        </tr>
     </table>
   </stripes:form>
 
 <p>
<table id="ErrorMessageTable">
  <tr><td><font color="red">${actionBean.errorMessage}</font></td></tr>
</table> 
    </div>

    <div class="clear"></div>
  </div>
  
  <div id="footer">
        <p>Copyright &copy; 2007 MyISERN-Onyx. Template Provided by <a rel="nofollow" target="_blank" href="http://www.freecsstemplates.org">Free CSS Templates</a></p>
  </div>
</div>
</body>
</html>